package com.tjbaobao.videoplayol.modal.enums;

public enum ServletEnum {
	VIDEO_LIST("VideoListServlet"),
	USER("UserServlet"),
    FILE_DOWNLOAD("FileDownloadServlet"),
    FILE_UPLOAD("FileUploadServlet"),
    ;

    public String requestCode ;

    ServletEnum(String requestCode) {
        this.requestCode = requestCode;
    }
    
    public static boolean checkRequest(String requestCode)
    {
    	if(requestCode==null||requestCode.equals(""))
    	{
    		return false;
    	}
    	for(ServletEnum servletEnum:values())
    	{
    		if(servletEnum.requestCode.equals(requestCode))
        	{
        		return true;
        	}
    	}
    	return false;
    }
}
